<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/9/10
 * Time: 8:56
 */

namespace Common\Model;


class CategoryModel extends CommonModel
{

    protected $pk        =  'id';
    protected $tableName =  'category';
    protected $token     =  'category';
    protected $orderby   =  array('orderby' => 'asc');

    //静态验证
    protected $_validate = array(
        array('name', 'require', '请填写分类名称！'),
    );

} 